﻿using BLLA;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HOST
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        IBLL.IBLLSession bl = DI.SpringHelper.GetObject<IBLL.IBLLSession>("BLLSession");
        DAL.DBSession db = new DAL.DBSession();
        private void button1_Click(object sender, EventArgs e)
        {
            //View_Order_Dishes order = new View_Order_Dishes();
            //string dd = order.GetOrder_Dishes("1","",1);
            //bl.IOrder_FormControl_TBLL.GetFromConID(1137, "009007", 1, "", 1);
            //Order_Dishes_T order = new Order_Dishes_T();
         //   string str = order.SetOrder_Dishes(1, textBox1.Text, 1, "", 1); 
           // Order_Oper_T order = new Order_Oper_T();
            //string k = order.SetMerOperID(123,  textBox1.Text, "", 1);
            //bl.IOrder_Oper_TBLL.GetMer(123, "", 1);
            //string s = bl.IOrder_Mer_TBLL.GetShopList(1, 100, "", "", 2, 0, 0, "", 1); 
            // bl.IOrder_Shelves_TBLL.SetOrder_Shelves(1, textBox1.Text, 2, "", 1);
            //bl.IOrder_Send_TBLL.GetGrid_Wiew("800", "", 1);
            //bl.IOrder_Send_TBLL.SetFormToTaker(textBox1.Text.ToString(), 1, "", 1);
            //bl.IOrder_MerAccount_TBLL.GetOrder_MerAccount(1, 10, "2","0","" ,"", 1);
            //string str = bl.IOrder_FormControl_TBLL.GetFromConID(800, "012002", 1, "", 1);
            //string str = bl.IOrder_FormControl_TBLL.GetFromConID(0, "012002", 2, "", 1);
            //string str = bl.IOrder_FormControl_TBLL.GetOrder_FormLog(735, "", 1);
            //bl.IOrder_Form_TBLL.SetOrder_Form(1, 10, "617", "1A03", "", "", 1);
            // string str=   bl.IOrder_Send_TBLL.GetOrder_SendByOperId(1, "1B06,1C00,1B02,1B08", "20160703", "20160703", "", 1, 10, "", 1);
            //       bl.IOrder_Walt_TBLL.GetUserPayWalt(37, "1", "", 1);
            //bl.IOrder_UserWalt_TBLL.SetOrder_UserWalt(1, 3, 2, "", 20, "", "", 1);
            //bl.IOrder_Mer_TBLL.GetShopInfo("1", "", 1);
            //bl.IOrder_Form_TBLL.BookOrder(textBox1.Text, "4", "", 1);
            //bl.IOrder_Walt_TBLL.SetOrder_Walt(1, textBox1.Text, 1, "", 1);
            // string xb=  bl.IOrder_UserWalt_TBLL.GetOrder_UserWalt("", 1);
            // string zb = bl.IOrder_Form_TBLL.BookOrder(textBox1.Text, "2", "", 1);
            //bl.IOrder_Dishes_TBLL.SetOrder_Dishes(1, textBox1.Text, 2, "", 1);

            string a = bl.IView_Order_FormBLL.get_count("", 1);
            string b = bl.IView_Order_FormBLL.SalesCount("", 1);



        }

        private void Form2_Load(object sender, EventArgs e)
        {

        }
    }
}
